import Request from '@/utils/request';

/**
 * bannerapi
 *
 * @author wxz
 * @date 2022/01/11 11:53
 */
export class BannerApi {
  /**
   * 新增
   *
   * @author wxz
   * @date 2022/01/11 11:53
   */
  static add(params) {
    return Request.post('/banner/add', params);
  }

  /**
   * 修改
   *
   * @author wxz
   * @date 2022/01/11 11:53
   */
  static edit(params) {
    return Request.post('/banner/edit', params);
  }

  /**
   * 删除
   *
   * @author wxz
   * @date 2022/01/11 11:53
   */
  static delete(params) {
    return Request.post('/banner/delete', params);
  }

  /**
   * 详情
   *
   * @author wxz
   * @date 2022/01/11 11:53
   */
  static detail(params) {
    return Request.getAndLoadData('/banner/detail', params);
  }
  static changeStatus(params) {
    return Request.post('/banner/changeStatus', params);
  }
}
